package com.dmz.workflow.vo;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.echronos.commons.utils.FilePathDeSerializer;
import com.echronos.commons.utils.FilePathSerializer;
import io.swagger.annotations.ApiModel;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.List;

@Data
@ApiModel(value = "Discussion对象", description = "Discussion")
public class DiscussionVo {

    /**
     *  主键
     */
    private Integer id;
    /**
     *  内容
     */
    private String content;
    /**
     *  创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;
    /**
     *  评论创建人
     */
    private Integer createUser;
    /**
     *  评论节点id
     */
    private String nodeId;
    /**
     * 流程实例id
     */
    private String processInstanceId;

    /**
     * 公司id
     */
    private Integer companyId;

    /**
     * 附件 对象
     */
    private List<DictionaryVo> dictionaryVOList;

    /**
     * 员工姓名
     */
    private String memberName;

    /**
     * 员工头像
     */
    @JSONField(deserializeUsing = FilePathDeSerializer.class,serializeUsing = FilePathSerializer.class)
    private String url;

    /**
     * 通知人的userId
     */
    private List<Integer> atPersons;

}